package xyz.ddlnt.model.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author ZZULI_SE 210910
 * @data 2025/4/26 22:54
 */
@Schema(description = "消息表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Message {
    @Schema(description = "消息 id")
    private Long id;
    @Schema(description = "发送方 id")
    private Long senderId;
    @Schema(description = "接收方 id")
    private Long receiverId;

    @Schema(description = "是否图片")
    private Boolean isImg;
    @Schema(description = "消息内容")
    private String content;
    @Schema(description = "发送时间")
    private LocalDateTime sendTime;

    @Schema(description = "'发送者版本号'")
    private Integer sender_version;
    @Schema(description = "'接受者版本号'")
    private Integer receiver_version;
    @Schema(description = "发送方是否可见：0 不可见，1 可见")
    private Integer sender_visible;
    @Schema(description = "接收方是否可见：0 不可见，1 可见")
    private Integer receiver_visible;
}